<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>联系方式</title>
<%@ include file="/WEB-INF/views/layout/public_css.jsp"%>
<%@ include file="/WEB-INF/views/layout/public_js.jsp"%>
<style type="text/css">
.font-red {
	color:red;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
    $('#special_news').DataTable({
    	"pagingType":   "full_numbers",
    	"oLanguage" : {
			"sProcessing" : "处理中...",
			"sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
			"oPaginate" : {
				"sFirst" : "首页",
				"sPrevious" : "上页",
				"sNext" : "下页",
				"sLast" : "末页"
			}
		},
    });
    
  //开始时间：  
    $('#qBeginTime').datetimepicker({  
    	format: 'yyyy-mm-dd hh:ii',
        language: 'zh-CN',
        autoclose: true,
    });  
    //结束时间：  
    $('#qEndTime').datetimepicker({  
    	format: 'yyyy-mm-dd hh:ii',
        language: 'zh-CN',
        autoclose: true,
    });
} );


</script>
</head>
<body>
<%@ include file="/WEB-INF/views/layout/head.jsp"%>
<div class="container-fluid">
    <div class="list-title">联系方式</div>
    <div class="row" style="margin:5px 0px;">
    	<div class="col-md-4 list-title" style="height:100%">
    		<h4 class="text-center">技术支持电话</h4>
    		<p class="text-center">${platform.tecPhone }</p>
    	</div>
    	<div class="col-md-4 list-title" style="height:100%">
    		<h4 class="text-center">市民服务中心</h4>
    		<p class="text-center">${platform.centerPhone }</p>
    	</div>
    	<div class="col-md-4 list-title" style="height:100%" >
    		<h4 class="text-center">一键通号码</h4>
    		<p class="text-center">${platform.oneKey }</p>
    	</div>
    </div>
    <div class="list-title search-area" style="margin-top:5px;">
    	<form class="form-inline" action="<%=basePath %>contact/searchC" method="post">
		  <div class="form-group" style="padding-top:7px">
		    <label for="">各街道、社区服务点联系方式</label>
		  </div>
		  <button type="submit" class="btn btn-default" style="float: right">搜索</button>
		  <div class="form-group" style="float: right">
		    <label for="">名称或联系方式</label>
		    <input type="text" name="key" class="form-control" id="" placeholder="请输入名称或联系方式">
		  </div>
		</form>
    </div>
	<table id="special_news" class="table table-striped" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>街道名称</th>
                <th>社区名称</th>
                <th>地址</th>
                <th>联系方式</th>
            </tr>
        </thead>
        <tbody>
            <%
				List<Contact> pr_list =  (List<Contact>) request.getAttribute("message");
				for(Contact p: pr_list)
				{
		 %>
            <tr>
               <td><a href="<%=basePath %>/civil/getCM?id=<%=p.id %>"><%=p.streetName%></a></td>
				<td><%=p.zoneName %></td>
                <td><%=p.detailAddress %></td>
                <td><%=p.phoneNum %></td>
            </tr>
         <%
				}
		 %>  
        </tbody>
    </table>
</div>
</body>
</html>